using UnityEngine;
using System.Collections;

public class storage : MonoBehaviour {
	
	public string currentProfile;
	
	public string[] systemOne;
	// Use this for initialization
	void Start () {
		DontDestroyOnLoad(this);
		for(int q = 1; q<systemOne.Length; q++)
		{
			Debug.Log(currentProfile+"systemOne"+q);
			systemOne[q] = PlayerPrefs.GetString(currentProfile+"systemOne"+q);
		}
		
	}
	void OnGUI()
	{
		
	}
	// Update is called once per frame
	void Update () {
		
	}
	public void save()
	{
		for(int q = 1; q<systemOne.Length; q++)
		{
			if(systemOne[q]=="true")
				PlayerPrefs.SetString(currentProfile+"systemOne"+q, "true");
		}
		Debug.Log("save");
	}
	public void kill()
	{
		save();
		Destroy(this);
	}
}
